package com.supply.dl.widget.adapter;

import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.supply.dl.bean.BaseItemBean;
import java.util.List;

/**
 * Created by ${qianzhihe} on 2018/4/23.
 * 基类适配器
 */

public class BaseAdapter extends BaseQuickAdapter<BaseItemBean, BaseViewHolder>{

    List<BaseItemBean> itemList;
    int adapterFlag=-1;

    public BaseAdapter(int layoutResId, @Nullable List<BaseItemBean> data) {
        super(layoutResId, data);
        this.itemList=data;
    }

    public BaseAdapter(@Nullable List<BaseItemBean> data) {
        super(data);
        this.itemList=data;
    }

    @Override
    protected void convert(BaseViewHolder helper, BaseItemBean item) {
    }

    public void setAdapterFlag(int adapterFlag){
        this.adapterFlag=adapterFlag;
    }

}
